package maxbe.rel2xml.generator.docs;

import java.io.File;
import java.io.IOException;

import org.apache.log4j.Logger;

public class HandlerControllerMockup extends HandlerController {

	private static Logger log = Logger.getLogger(HandlerControllerMockup.class);

	private ValueCollector valueCollector;

	public HandlerControllerMockup(ValueCollector valueCollector)
			throws IOException {
		super(new File("./"), "test");
		this.valueCollector = valueCollector;
	}

	@Override
	public ValueCollector getHandler() {
		return valueCollector;
	}

	@Override
	public ValueCollector getHandler(String table) {
		return valueCollector;
	}

	@Override
	public ValueCollector getHandler(String table, int id) {
		return valueCollector;
	}

	public void terminateHandler(ValueCollector handler) {
		// Ignore
	}

}